package com.aaa.custom.service.productsService;

import org.apache.ibatis.annotations.Param;


/**
 * fileName:ProductsService
 * description:
 * author:zxh
 * createTime:2020/3/20 10:27
 * version:1.0.0
 */
public interface ProductsService {
    /**
     * 库存数目加
     * @param product_id
     * @param ProductAmount
     * @return
     */

    Integer ProductStockAddbyId(@Param("product_id") Long product_id, @Param("ProductAmount") Integer ProductAmount);

    /**
     * 库存数目减
     * @param product_id
     * @param ProductAmount
     * @return
     */

    Integer ProductStockSubtractbyId(@Param("product_id") Long product_id,Integer ProductAmount) throws Exception;
}
